home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / Le Casse Dents.swf / scripts / frame_25 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  831 b   |  55 lines

  1. function chVitesse(vit)
  2. {
  3.    if(0 < speedx)
  4.    {
  5.       speedx = vit;
  6.    }
  7.    else
  8.    {
  9.       speedx = - vit;
  10.    }
  11.    if(0 < speedy)
  12.    {
  13.       speedy = vit;
  14.    }
  15.    else
  16.    {
  17.       speedy = - vit;
  18.    }
  19. }
  20. startDrag("/lance_carries",1,180,420,580,420);
  21. ballx = getProperty("/lance_carries", _X);
  22. bally = 400;
  23. vflu = 20;
  24. vnor = 10;
  25. vbon = 6;
  26. speedx = vnor;
  27. speedy = - vnor;
  28. ballwidth = 16;
  29. fluorwidth = 53;
  30. paddlewidth = 55;
  31. topBonus = false;
  32. speedBonusy = 4;
  33. bricknumber = 0;
  34. for(var dent in "Structures")
  35. {
  36.    var maDent = Structures[dent];
  37.    if(typeof maDent == "movieclip")
  38.    {
  39.       bricknumber++;
  40.    }
  41. }
  42. topSacre = false;
  43. topDent = false;
  44. if(_root.redoublant)
  45. {
  46.    topFluor = 2;
  47. }
  48. else
  49. {
  50.    topFluor = 0;
  51. }
  52. vies.gotoAndPlay(carries);
  53. veut_sacrifier = 0;
  54. set("/:level",2);
  55.